﻿using PublicCommon;
using System.ComponentModel.DataAnnotations;

namespace T_Person.Read.APi.Dto
{
    public class DepartmentDto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Did { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? Dname { get; set; }
        /// <summary>
        /// 上级部门
        /// </summary>
        public string? Dpname { get; set; }
        /// <summary>
        /// 上级部门id
        /// </summary>
        public int Dpid { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(20)]
        public string? CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [StringLength(20)]
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 审计状态
        /// </summary>
        public int? AuditState { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }
    }
}
